﻿using ITXHWEB.Models;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Web.Mvc;
using WPFExcelReport;
using WPFExcelReport.Helpers;
using ITXHWEB.Infrastructure;
using System.Collections;
using System.Collections.Generic;
namespace ITXHWEB.Controllers
{
    public partial class VKKOPFController : ITXController
    { 

        public VKKOPFController()
        { 

        }

        /// <summary>
        /// 展示当前记录
        /// </summary>
        /// <param name="returnUrl"></param>
        /// <returns></returns>
        [ChildActionOnly]
        public ActionResult MVK04(string returnUrl)
        {
            ModelState.Clear(); 
            VKKOPFModel mx = new VKKOPFModel();
            mx.VKPAUF = MORDER.ToString(); 
            mx.REMARK =INFO; 
            return PartialView(mx);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MVK04(VKKOPFModel model, string returnUrl)
        {
            PM["LFD"] =Helper.Right("000000"+ MORDER,6);
            VHP.EXORD.PRINT(PM);
            IsVKKReady = false;
            INFO = "";
            dwVKP = null; 
            return RedirectToAction(MAPP, MAPP); 
        } 
    }
}
